#include "../include/employee.h"
#include <string.h>

Employee::Employee() {}

Employee::Employee(int _id, char _name[20], int _DeptId) {
  this->w_ID = _id;
  strcpy(this->w_Name, _name);
  this->w_DeptId = _DeptId;
}

void Employee::showInfo() {
  cout << "职工编号： " << this->w_ID << " \t职工姓名： " << this->w_Name
       << " \t岗位：" << this->getDeptName()
       << " \t岗位职责：完成经理交给的任务" << endl;
}

string Employee::getDeptName() { return "员工"; }
